import behaviors from "../../../../../../config/behaviors";

Component({
  behaviors: [behaviors],
  properties: {
    products: {
      type: Array,
      value: [],
      observer(newVal, oldVal, changedPath) {
        if (newVal.length > 0) {
        }
      }
    }
  },
  data: {
    // hide: false
  },
  methods: {
    selectedProduct(e) {
      // const item = e.currentTarget.dataset.item
      // this.triggerEvent('selectedProduct', {item})
    },
    changeProductNum(e) {
      const num =  e.detail.value
      const item = e.currentTarget.dataset.item
      this.triggerEvent('changeProductNum', { num, item })
    }
  }
});
